package com.spring.dive.a02interface;
// 2）实现类也是泛型类，实现类和接口的类型要一致
public class GenericImpl2<T> implements GenericInterface<T>{
    private T key;
    // 实现类
    public void print(T t) {
        System.out.println("----->t:"+t);
    }
    public T getKey() {
        return key;
    }
}
